<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>我的相册</title>
    <script src="js/flexible.js"></script>
    <link rel="stylesheet" href="css/flexible.css">
    <link rel="stylesheet" href="css/reset.css">
    <link rel="stylesheet" href="css/style.css">
    <script src="js/vue/vue.js"></script>
    <script src="js/vue/axios.js"></script>
    <script src="js/vue/MD5.js"></script>
</head>
<body>
<div class="my_photo" id="app">
   <template>
        <div v-if="dateList.length>0">
            <div class="photo_list" v-for="item in dateList">
                <div class="photo_date">
                    <div class="dian"><img src="images/dian.png" alt=""></div>
                    <div class="date">{{item.Day}}</div>
                    <div class="clear"></div>
                </div>
                <div class="photo_pic_list clearfix">
                    <a :href="items" v-for="items in item.Piclist" >
                        <div  class="imgPhoto" 
                        :style="{backgroundImage: 'url(' + items + ') '}"  alt="相册"></div>
                    </a>
                    <div class="clear"></div>
                </div>
            </div>
        </div>
        <div class="notDate" v-else>
            <img src="images/notDate.jpg"/>
        </div>
   </template>
</div>
</body>
<script>
var app = new Vue({
    el: '#app',
    data: {
        dateList:[],
        from:{
            page:'1',
        },
    },
    created(){
        this.getCardList()
    },
    methods: {
        getCardList(){
            getVs()
            const params=this.from
            axios.get('/mobileapi/member/user_info.php?act=user_pic',{params:params}).then(data =>{
                console.log(data.data)
                let { msg, code,user} = data.data
                    if (code !== 200) {
                        _this.$message({
                            message: msg,
                            type: 'error'
                        });
                    } else {
                        data=data.data
                        this.dateList=data.data.list
                        console.log(this.dateList)
                    }
                }).catch(function (error) { 
                    console.log(error); 
            });
        }
    }  
})    
</script>
</html>